﻿namespace KLF.Lib.Browser.Events
{
    #region Using Statements

    using KLF.Lib.Browser.DOM.HTML;

    #endregion

    public class ScriptPostExecuteArgs : ScriptEventArgs
    {
        #region Constructors

        public ScriptPostExecuteArgs(HTMLDocument _doc, HTMLScriptElement _script, bool _success)
            : base(_doc, _script)
        {
            ExecutionSuccessful = _success;
        }

        #endregion

        /// <summary>
        /// Indicates whether the entire block executed without error.
        /// </summary>
        public bool ExecutionSuccessful { get; set; }
    }
}
